package test;

public class Demo7 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread=new Thread(()->{
            while(true) {

            }
        });

        System.out.println(thread.getState());
        thread.start();
        thread.join();
    }
}
